<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>上传文件</title>
    <script type="text/javascript" src="jquery-3.4.1.min.js"></script>
    <script type="text/javascript" src="./load.js"></script>
</head>
<body>

    <div>
            <hr>
            <form method="POST" action="http://localhost:8000/file/upload/request/" enctype="multipart/form-data">
                <div>
                    <label>通过HttpServletRequest上传文件: </label>
                    <br />
                    <input class="uploadfile" type="file" name="file">
                    <input type="submit" value="提交">
                </div>
            </form>
            <hr>
            
            <form method="POST" action="http://localhost:8000/file/upload/part/" enctype="multipart/form-data">
                <div>
                    <label>通过Part上传文件: </label>
                    <br />
                    <input class="uploadfile" type="file" name="part">
                    <input type="submit" value="提交">
                </div>
            </form>
            <hr>
            <form method="POST" action="http://localhost:8000/file/upload/multipart/" enctype="multipart/form-data">
                <div>
                    <label>通过MultiPart上传文件: </label>
                    <br />
                    <input class="uploadfile" type="file" name="multipartFile">
                    <input type="submit" value="提交">
                </div>
            </form>
            <hr>
            <div>
                <label>通过headers里面的参数传给控制器(controller)</label>
                <input type="button" value="发送参数" onclick="requestHeaderRequest()">
            </div>
            <hr>
            <div>
                <label>手动发json</label>
                    <input type="button" value="发送参数" onclick="manualRequest()">
                </div>
            <hr>
    </div>





</body>
</html>